import { LOADDATA } from "./actionTypes";

const defaultState = {
  list : [1,1,2]
}

const reducer = (state = defaultState,action) =>{
    switch (action.type) {
      case LOADDATA:
        return {
          list:action.list
        }
    
      default:
       return state 
    }
}

export default reducer